package com.example.hotelmanagement.entity;

public class Hotel {

    private Long id;
    private String name;
    private String location;
    private double price;
    private String description;

    // Default constructor
    public Hotel() {
    }

    // Constructor with fields
    public Hotel(Long id, String name, String location, double price, String description) {
        this.id = id;
        this.name = name;
        this.location = location;
        this.price = price;
        this.description = description;
    }

    // Getter and Setter for 'id'
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    // Getter and Setter for 'name'
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    // Getter and Setter for 'location'
    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    // Getter and Setter for 'price'
    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    // Getter and Setter for 'description'
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    // Optional: Override toString method for easy display of hotel details
    @Override
    public String toString() {
        return "Hotel{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", location='" + location + '\'' +
                ", price=" + price +
                ", description='" + description + '\'' +
                '}';
    }
}
